package com.hxzy.dto.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * 后台登录接收数据模型
 *
 * @author tonneyyy
 */
@Getter
@Setter
@ToString
@ApiModel(value = "登录模型")
public class AdminLoginDTO {

    @ApiModelProperty(value = "用户名/手机号")
    @NotBlank(message ="用户名/手机号不能为空")
    private String account;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "验证码")
    @NotBlank(message = "验证码不能为空")
    private String code;

    @ApiModelProperty(value = "验证码标识")
    @NotBlank(message = "验证码标识不能为空")
    private String uuid;
}
